package cn.com.clearcloud.user.service.impl;

import cn.com.clearcloud.user.mapper.UserMapper;
import cn.com.clearcloud.user.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;

    @Override
    public Integer  debit(String userId, int money, int id) {
        return userMapper.updateUser(id,userId,money);
    }
}
